package com.dragon.modules.yuegou.client.ali.response;

import com.alipay.api.internal.util.StringUtils;

import java.io.Serializable;

/**
 * 阿里公共状态响应
* @author gx
* @date 2021年10月22日
 */
public class AliBaseResponse implements Serializable  {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2710740253658172391L;

	/**
	 * 网关返回码
	 */
    private String code;

    /**
     * 网关返回码描述
     */
    private String msg;

    /**
     * 业务返回码
     */
    private String subCode;

    /**
     * 业务返回码描述
     */
    private String subMsg;
    
    /**
     * 签名
     */
    private String sign;
    
    

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getSubCode() {
		return subCode;
	}

	public void setSubCode(String subCode) {
		this.subCode = subCode;
	}

	public String getSubMsg() {
		return subMsg;
	}

	public void setSubMsg(String subMsg) {
		this.subMsg = subMsg;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}
    
    public boolean isSuccess() {
        return StringUtils.isEmpty(subCode);
    }
    

}
